<template>
  <div id="app">
    <el-container>
        <el-header><head-nav></head-nav></el-header>
    <el-container>
      <el-aside width="205px"><router-view name="leftNav"></router-view></el-aside>
      <el-main>
        <div class="main-view"><router-view class="main-view-router"></router-view></div>
      </el-main>
    </el-container>
</el-container>
  </div>
</template>

<script>

import HeadNav from './components/HeadNav.vue'
export default {
  name: 'app',
  components: {
    HeadNav,
  }
}
</script>
<style>
html,body{
    border: none;
    margin: 0;
    height: 100%;
    width: 100%;
}
#app {
  width: 100%;
}
 .el-header, .el-footer {
    background-color: #545C64;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  .el-aside {
    background-color: #545C64;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    position: relative;
  }
  body > .el-container {
    margin-bottom: 40px;
  }
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
.main-view{
  position: absolute;
  top: 5px;
  left: 10px; 
  height: 99%;
  width: 99%;
  background-color: aqua; 
  overflow-y: auto;
}
.main-view-router{
   overflow-y: auto;
}
</style>
